home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
vacation.z
/
vacation
Wrap
Text File
|
1998-10-20
|
8KB
|
199 lines
VVVVAAAACCCCAAAATTTTIIIIOOOONNNN((((1111)))) VVVVAAAACCCCAAAATTTTIIIIOOOONNNN((((1111))))
NNNNAAAAMMMMEEEE
vacation - return ``I am not here'' mail indication
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_I_n_i_t_i_a_l_i_z_i_n_g _t_h_e _d_a_t_a_b_a_s_e:
vvvvaaaaccccaaaattttiiiioooonnnn ----iiii [ ----rrrr _i_n_t_e_r_v_a_l ]
_R_e_p_l_y_i_n_g _t_o _m_a_i_l:
vvvvaaaaccccaaaattttiiiioooonnnn [ ----aaaa _a_l_i_a_s ] _u_s_e_r_i_d
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_V_a_c_a_t_i_o_n automatically returns a message to anyone who sends you mail.
Typically, this message informs the sender that you are not available to
read your mail.
IIIInnnniiiittttiiiiaaaalllliiiizzzziiiinnnngggg tttthhhheeee DDDDaaaattttaaaabbbbaaaasssseeee
When called with the ----iiii flag, _v_a_c_a_t_i_o_n initializes the _n_d_b_m(3B) database
files ._v_a_c_a_t_i_o_n._p_a_g and ._v_a_c_a_t_i_o_n._d_i_r in your home directory. If a
vacation database already exists, _v_a_c_a_t_i_o_n will delete the old one and
create a new (empty) one. _v_a_c_a_t_i_o_n uses this database to keep track of
the people to whom it has sent messages and at what times such messages
were sent. _v_a_c_a_t_i_o_n requires this information to implement the reply
interval function described below.
The ----rrrr flag causes _v_a_c_a_t_i_o_n to set the reply interval to _i_n_t_e_r_v_a_l days.
The reply interval is the time the system will wait before sending a
duplicate notification message to the same user. For example, if the
reply interval is set to 3 days, then no matter how frequently a given
user sends you mail, he will be sent a notification message at most once
every 3 days. This feature reduces unnecessary mail traffic for the
system and undue irritation for those who send you mail.
An interval of ``0'' means that a reply is sent to each message, and an
interval of ``infinite'' (actually, any non-numeric character) will never
send more than one reply.
The default interval is seven days.
CCCCaaaavvvveeeeaaaatttt:::: An interval of ``0'' is quite dangerous as it allows mailers to
get into ``I am on vacation'' loops.
RRRReeeeppppllllyyyyiiiinnnngggg ttttoooo MMMMaaaaiiiillll
When called without the ----iiii flag, _v_a_c_a_t_i_o_n sends an automatic reply
message. _v_a_c_a_t_i_o_n will expect to see an incoming mail message on
standard input. Once the message has been collected, _v_a_c_a_t_i_o_n will send
an automatic reply to the sender of the incoming mail message provided
that all of the following are true:
PPPPaaaaggggeeee 1111
VVVVAAAACCCCAAAATTTTIIIIOOOONNNN((((1111)))) VVVVAAAACCCCAAAATTTTIIIIOOOONNNN((((1111))))
1. _u_s_e_r_i_d (or an _a_l_i_a_s supplied using the ----aaaa option) is part of either
the ``To:'' or ``Cc:'' headers of the mail.
2. No automatic reply has been sent to the sender within the configured
_i_n_t_e_r_v_a_l days. (See the ----iiii and ----rrrr flags above.)
3. The sender of the incoming message is not ``???-REQUEST'',
``Postmaster'', ``UUCP'', ``MAILER'', or ``MAILER-DAEMON'' (where case
doesn't matter).
4. No ``Precedence: bulk'' or ``Precedence: junk'' line is included in
headers of the incoming mail message.
The automatic reply message will be read from the ._v_a_c_a_t_i_o_n._m_s_g file in
the home directory associated with _u_s_e_r_i_d. This file should contain the
complete mail message (including headers) which will be sent back to the
sender. If it does not include a ``Subject:'' line, _v_a_c_a_t_i_o_n will
construct one using the ``Subject:'' line from the incoming message.
_V_a_c_a_t_i_o_n reads the first line from the standard input for a UNIX-style
``From'' line to determine the address of the sender. _s_e_n_d_m_a_i_l(1M)
includes this ``From'' line automatically. Note that if the incoming
message contains a ``Reply-To:'' message header, _v_a_c_a_t_i_o_n will send its
reply message to the address listed there instead of to the address from
the ``From'' line.
EEEEXXXXAAAAMMMMPPPPLLLLEEEE
To configure _v_a_c_a_t_i_o_n so that it will automatically return a message to
each person who sends you mail, you will need to take the following
steps:
1. Create a ._v_a_c_a_t_i_o_n._m_s_g file in your home directory containing the
message that you want _v_a_c_a_t_i_o_n to return to each sender. It should be
a complete message (including headers). If your name was ``John
Brown,'' your userid was ``john'' and your host name was
``mymachine.company.com'', you might create a ._v_a_c_a_t_i_o_n._m_s_g file
containing:
From: john@mymachine.company.com (John Brown)
Precedence: bulk
I am on vacation until Aug. 1st. In my absence, please refer
all urgent business to Jane Smith. Her e-mail address is
jane@hermachine.company.com.
-- John Brown
2. Initialize the vacation database in your home directory by invoking
_v_a_c_a_t_i_o_n with the ----iiii flag and, optionally, the ----rrrr flag.
PPPPaaaaggggeeee 2222
VVVVAAAACCCCAAAATTTTIIIIOOOONNNN((((1111)))) VVVVAAAACCCCAAAATTTTIIIIOOOONNNN((((1111))))
3. Create a ._f_o_r_w_a_r_d file in your home directory that tells _s_e_n_d_m_a_i_l(1M)
to pass incoming mail to the _v_a_c_a_t_i_o_n program. Again, if your name
was ``John Brown'' and your userid was ``john,'' your ._f_o_r_w_a_r_d file
might have:
\john, "|/usr/sbin/vacation john"
This will cause _s_e_n_d_m_a_i_l(1M) to send one copy of the incoming message
to your regular mailbox (so you can read it when you get back) and one
copy of the message to the _v_a_c_a_t_i_o_n program. Note that the _v_a_c_a_t_i_o_n
program is called such that it will reply to any messages for
``john.''
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Fatal errors, such as calling _v_a_c_a_t_i_o_n with incorrect arguments, or with
non-existent _u_s_e_r_i_ds, are logged in the system log file, using
_s_y_s_l_o_g(3B).
FFFFIIIILLLLEEEESSSS
~/.vacation.dir database file
~/.vacation.msg message to send
~/.vacation.pag database file
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ndbm(3B), sendmail(1M), syslog(3B).
PPPPaaaaggggeeee 3333